package binary;

public class HexDemo {
    public static void main(String[] args) {
        int n=0x4a768ca;
        int m=0b100101001110110100011001010;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toHexString(n));
        System.out.println(Integer.toHexString(m));
        System.out.println(n);
        System.out.println(m);
    }
}
